package edu.gdkm.abstractdemo;

public abstract class Three_dimension {
    protected double r; // 底边圆半径
    protected double h; // 高

    public Three_dimension(double r, double h) {
        this.r = r;
        this.h = h;
    }

    public abstract double superficial_area(); // 抽象方法：计算立体模型的表面积

    public abstract double volume(); // 抽象方法：计算立体模型的体积
}
